FROM cube-1.3:base
ENV CUBE_TCM_PATH="/root/centoscloud/cube-tcm/" \
    LD_LIBRARY_PATH="/root/centoscloud/cube-tcm/locallib/bin:/root/centoscloud/cube-1.3/cubelib/lib:."
ADD gm_sm2_master /root/centoscloud/gm_sm2_master
ADD cube-tcm /root/centoscloud/cube-tcm
RUN chmod 755 /root/centoscloud/cube-tcm
RUN chmod 755 -R /root/centoscloud/cube-tcm/vtcm_v0_utils
RUN chmod 755 /root/centoscloud/cube-tcm/include
RUN chmod 755 -R /root/centoscloud/cube-tcm/locallib
ADD tcm_example /root/tcm_example

RUN echo "CUBE_TCM_PATH=/root/centoscloud/cube-tcm/" >> /home/player/.bashrc
RUN echo "LD_LIBRARY_PATH=/root/centoscloud/cube-tcm/locallib/bin:/root/centoscloud/cube-1.3/cubelib/lib:." >> /home/player/.bashrc

RUN echo "CUBE_TCM_PATH=/root/centoscloud/cube-tcm/" >> /root/.bashrc
RUN echo "LD_LIBRARY_PATH=/root/centoscloud/cube-tcm/locallib/bin:/root/centoscloud/cube-1.3/cubelib/lib:." >> /root/.bashrc